package dao.subline;

import java.util.List;

import vo.SublineVO;

import com.ibatis.sqlmap.client.SqlMapClient;

public class SublineDAOImpl implements SublineDAO{

	private SqlMapClient sqlMapClient;

	public void setSqlMapClient(SqlMapClient sqlMapClient) {
		this.sqlMapClient = sqlMapClient;
	}

	@Override
	public List<SublineVO> getSubline(int line_no) throws Exception {
		return sqlMapClient.queryForList("subline.getSubline", line_no);
	}
	
	@Override
	public int getTotalCount() throws Exception {
		return (int) sqlMapClient.queryForObject("subline.getTotalCount");
	}
}
